﻿using FreeSql.DataAnnotations;

namespace MicroApplication.Model.Business
{
    /// <summary>
    /// 车辆信息表
    /// </summary>
    [Table(Name = "lt_vehicle")]
    public class VehicleEntity
    {
        ///<summary>
        ///车牌号
        ///</summary>
        [Column(StringLength = 15)]
        public string Plate { get; set; }

        ///<summary>
        ///是否正在运输
        ///</summary>
        public bool IsBusy { get; set; }

        ///<summary>
        ///车型
        ///</summary>
        public VehicleType Type { get; set; }

        ///<summary>
        ///车辆尺寸
        ///</summary>
        [Column(StringLength = 10)]
        public string LorrySize { get; set; }

        ///<summary>
        ///载重
        ///</summary>
        public int LoadWeight { get; set; }

        /// <summary>
        /// 是否为自有车辆
        /// </summary>
        public bool IsPrivate { get; set; }

        ///<summary>
        ///简要说明
        ///</summary>
        [Column(StringLength = 200)]
        public string Memo { get; set; }
    }
}
